package com.hk.springdatajpa.service.impl;

import com.hk.springdatajpa.dao.CustomerRepository;
import com.hk.springdatajpa.entity.Customer;
import com.hk.springdatajpa.service.CustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author by 何坤
 * @Classname CustomerServiceImpl
 * @Description TODO
 * @Date 2019/9/24 9:10
 */
@Service
public class CustomerServiceImpl implements CustomerService {

    @Resource
    private CustomerRepository customerRepository;

    @Override
    public void saveCustomer(Customer customer) {
        customerRepository.save(customer);
    }
}
